LinearLayout

Undocumented in source.

Members

Aliases

addChild
alias addChild = Widget.addChild
Undocumented in source.

Enums

Direction
enum Direction
Undocumented in source.

Functions

addChild
void addChild(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
preRender
void preRender()
Undocumented in source. Be warned that the author may not have intended to support it.
setDirection
void setDirection(Direction d)
Undocumented in source. Be warned that the author may not have intended to support it.
setPadding
void setPadding(int padding)
Undocumented in source. Be warned that the author may not have intended to support it.
setSpacing
void setSpacing(int spacing)
Undocumented in source. Be warned that the author may not have intended to support it.
updateLayout
void updateLayout()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

dir
Direction dir;
Undocumented in source.
padding
int padding;
Undocumented in source.
spacing
int spacing;
Undocumented in source.

Inherited Members

From Widget

Bounds
struct Bounds
Undocumented in source.
Transform
struct Transform
Undocumented in source.
width
int width;
height
int height;
Undocumented in source.
parent
Widget parent;
Undocumented in source.
children
Widget[] children;
Undocumented in source.
worldTransform
Transform worldTransform;
Undocumented in source.
localTransform
Transform localTransform;
Undocumented in source.
visible
bool visible;
Undocumented in source.
isDirty
bool isDirty;
Undocumented in source.
getWorldBounds
Bounds getWorldBounds()
Undocumented in source. Be warned that the author may not have intended to support it.
findWidgetAt
Widget findWidgetAt(float[2] pos)
Undocumented in source. Be warned that the author may not have intended to support it.
findWidgetAt
Widget findWidgetAt(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
getLocalBounds
Bounds getLocalBounds()
Undocumented in source. Be warned that the author may not have intended to support it.
setPosition
void setPosition(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
addChild
void addChild(Widget[] widgets)
Undocumented in source. Be warned that the author may not have intended to support it.
addChild
void addChild(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
setParent
void setParent(Widget w)
Undocumented in source. Be warned that the author may not have intended to support it.
onFocusEnter
void onFocusEnter()
Undocumented in source. Be warned that the author may not have intended to support it.
onFocusExit
void onFocusExit()
Undocumented in source. Be warned that the author may not have intended to support it.
onScroll
void onScroll(float[3] currentScroll, float[3] lastScroll)
Undocumented in source. Be warned that the author may not have intended to support it.
onMouseEnter
void onMouseEnter()

Executed the first time the mouse enters in the widget's boundaries

onMouseDown
void onMouseDown()

Executed when the mouse goes down inside the widget

onMouseClick
void onMouseClick()

Executed when both a mousedown and mouseup is executed when mouse is over this widget

onMouseUp
void onMouseUp()

If onMouseDown was executed, onMouseUp will be called even if the mouse is not inside the widget

onMouseMove
void onMouseMove()
Undocumented in source. Be warned that the author may not have intended to support it.
onDragStart
void onDragStart(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
onDragged
void onDragged(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
onDragEnd
void onDragEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
onDropReceived
bool onDropReceived(Widget w)

Returns whether it accepted the receive

onMouseExit
void onMouseExit()
Undocumented in source. Be warned that the author may not have intended to support it.
isDraggable
bool isDraggable;
Undocumented in source.
isFocused
bool isFocused;
Undocumented in source.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
preRender
void preRender()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render()
Undocumented in source. Be warned that the author may not have intended to support it.
onRender
void onRender()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta